
import {createRouter,createWebHistory} from 'vue-router'

const routers = [
    {
        path: '/',
        redirect: 'wall?id=0',
        name: 'index',
        component: () => import('../views/YikeIndex.vue'),
        children: [
            {
                path: 'wall',
                component: () => import('../views/WallMessage.vue'),
            }
        ]
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes: routers,
})

export default router;        // 暴露路由